IndexEdgeTaggedGraph
IndexEdgeTaggedGraph[g] sets tags of edges in the graph g to their edge indices.
IndexEdgeTaggedGraph[g,r] sets tags of edges to r,r+1,…
Please visit the official Wolfram Language Reference for more details and examples on core symbols.